<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" template="/template/template.xhtml">

	<ui:define name="conteudo1">
		<h:panelGroup rendered="#{not cadastrarUsuario.clienteLogado}">
			<ui:include src="/login-component.xhtml" />
		</h:panelGroup>

		<h:panelGroup rendered="#{cadastrarUsuario.clienteLogado}">
			<h:form>
				<h:outputText value="Reserva de Quartos:" />
				<hr />

				<h:outputText value="Escolha o tipo do quarto:" />

				<br />

				<p:selectOneRadio value="#{reservarAction.quarto.tipoQuarto}">
					<f:selectItem itemLabel="Quarto Simples" itemValue="QUARTO_SIMPLES" />
					<f:selectItem itemLabel="Quarto Duplo" itemValue="QUARTO_DUPLO" />
					<f:selectItem itemLabel="Quarto Triplo" itemValue="QUARTO_TRIPLO" />
				</p:selectOneRadio>

				<br />

				<h:outputText value="Adicionais:" />
				<br />
				<br />

				<h:panelGrid columns="2">
					<p:selectBooleanCheckbox value="false" />
					<h:outputText value="Almoço" />

					<p:selectBooleanCheckbox value="false" />
					<h:outputText value="Jantar" />

					<p:selectBooleanCheckbox value="false" />
					<h:outputText value="Lavanderia" />

					<p:selectBooleanCheckbox value="false" />
					<h:outputText value="Despertador" />

					<p:selectBooleanCheckbox value="false" />
					<h:outputText value="Serviço de Quarto" />

					<p:selectBooleanCheckbox value="false" />
					<h:outputText value="Armazenamento de Valores" />
				</h:panelGrid>


				<br />

				<h:outputText value="Entrada e Saida" />
				<br />
				<br />

				<h:outputText value="Entrada:" />
				<p:calendar value="#{reservarAction.dataEntrada}"
					pattern="dd/MM/yyyy" readonlyInput="true" navigator="true" mindate="#{reservarAction.dataAtual}" />

				<h:outputText value="Saida:" />
				<p:calendar value="#{reservarAction.dataSaida}"
					pattern="dd/MM/yyyy" readonlyInput="true" navigator="true" mindate="#{reservarAction.dataEntrada}"/>

				<br />
				<br />

				<p:commandButton action="#{cadastrarUsuario.cadastrar}"
					value="Realizar Reserva" id="botaoCadastrar" ajax="false" />
			</h:form>
		</h:panelGroup>
	</ui:define>
</ui:composition>